<template>
	<view class="wrap">
		<u-form :model="model" ref="uForm"  >
			<u-form-item  label-width="130" :label-position="labelPosition" label="资产类别:"  >
				<u-input  :disabled="disabled"   :border="border" placeholder="" v-model="model.classfullname" type="text"></u-input>
			</u-form-item>
			<u-form-item  label-width="130" :label-position="labelPosition" label="资产编号:"  >
			 	<u-input  :disabled="disabled"   :border="border" placeholder="" v-model="model.uuid" type="text"></u-input>
			 </u-form-item>
			 
			 <u-form-item  label-width="130" :label-position="labelPosition" label="序列:"  >
			  	<u-input  :disabled="disabled"   :border="border" placeholder="" v-model="model.sn" type="text"></u-input>
			  </u-form-item>
			  
			 <u-form-item  label-width="130" :label-position="labelPosition" label="规格型号:"  >
			 	<u-input  :disabled="disabled"  :border="border" placeholder="" v-model="model.model" type="text"></u-input>
			 </u-form-item>
			 
			 <u-form-item  label-width="130" :label-position="labelPosition" label="资产状态:">
			 	<u-input  :disabled="disabled"  :border="border" placeholder="" v-model="model.recyclestr" type="text"></u-input>
			 </u-form-item>
			 
			 <u-form-item  label-width="130" :label-position="labelPosition" label="来源:" >
			 	<u-input  :disabled="disabled"  :border="border" placeholder="" v-model="model.zcsourcestr" type="text"></u-input>
			 </u-form-item>
			 <u-form-item  label-width="130" :label-position="labelPosition" label="供应商:"  >
			 	<u-input  :disabled="disabled"  :border="border" placeholder="" v-model="model.wbsupplierstr" type="text"></u-input>
			 </u-form-item>
			 <u-form-item  label-width="130" :label-position="labelPosition" label="品牌:"  >
			 	<u-input  :disabled="disabled"  :border="border" placeholder="" v-model="model.brandstr" type="text"></u-input>
			 </u-form-item>
			 <u-form-item  label-width="130" :label-position="labelPosition" label="使用年限:"  >
			 	<u-input :disabled="disabled"  :border="border" placeholder="" v-model="model.usefullifestr" type="text"></u-input>
			 </u-form-item>
			 
			 <u-form-item  label-width="130" :label-position="labelPosition" label="其他标签:"  >
			 	<u-input :disabled="disabled"  :border="border" placeholder="" v-model="model.fs20" type="text"></u-input>
			 </u-form-item>
			 
			 <u-form-item  label-width="130" :label-position="labelPosition" label="使用公司"  >
			 	<u-input :disabled="disabled"  :border="border" placeholder="" v-model="model.comp_fullname" type="text"></u-input>
			 </u-form-item>
			 <u-form-item  label-width="130" :label-position="labelPosition" label="使用部门:"  >
			 	<u-input :disabled="disabled"  :border="border" placeholder="" v-model="model.part_fullname" type="text"></u-input>
			 </u-form-item>
			 <u-form-item  label-width="130" :label-position="labelPosition" label="使用人:"  >
			 	<u-input :disabled="disabled"  :border="border" placeholder="" v-model="model.used_username" type="text"></u-input>
			 </u-form-item>
			 
			 <u-form-item  label-width="130" :label-position="labelPosition" label="区域:"  >
			 	<u-input :disabled="disabled"  :border="border" placeholder="" v-model="model.locstr" type="text"></u-input>
			 </u-form-item>
			 
			 <u-form-item  label-width="130" :label-position="labelPosition" label="位置:"  >
			 	<u-input :disabled="disabled"  :border="border" placeholder="" v-model="model.locdtl" type="text"></u-input>
			 </u-form-item>
			 
			 <u-form-item  label-width="130" :label-position="labelPosition" label="备注:"  >
			 	<u-input :disabled="disabled"  :border="border" placeholder="" v-model="model.mark" type="text"></u-input>
			 </u-form-item>
			 
			 <u-form-item  label-width="130" :label-position="labelPosition" label="标签1:"  >
			 	<u-input :disabled="disabled"  :border="border" placeholder="" v-model="model.label1" type="text"></u-input>
			 </u-form-item>
			 
			 <u-form-item  label-width="130" :label-position="labelPosition" label="标签2:"  >
			 	<u-input :disabled="disabled"  :border="border" placeholder="" value="1212" v-model="model.label2" type="text"></u-input>
			 </u-form-item>
 
			 
			 <u-form-item  label-width="130" :label-position="labelPosition" label="维保商:"  >
			 	<u-input :disabled="disabled"  :border="border" placeholder="" v-model="model.wbsupplierstr" type="text"></u-input>
			 </u-form-item>
			 <u-form-item  label-width="130" :label-position="labelPosition" label="维保状态:"  >
			 	<u-input :disabled="disabled"  :border="border" placeholder="" v-model="model.wbstr" type="text"></u-input>
			 </u-form-item>
			 <u-form-item  label-width="130" :label-position="labelPosition" label="脱保日期:"  >
			 	<u-input :disabled="disabled"  :border="border" placeholder="" v-model="model.wbout_datestr" type="text"></u-input>
			 </u-form-item>
			 <u-form-item  label-width="130" :label-position="labelPosition" label="维保说明:"  >
			 	<u-input :disabled="disabled"  :border="border" placeholder="" v-model="model.wbct" type="text"></u-input>
			 </u-form-item>
		</u-form>
		
		
	</view>
</template>

<script>
export default {
	data() {
		let that = this;
		return {
			model: {
				classfullname: '',
				recyclestr:"",
				uuid:"",
				model:"",
				supplierstr:"",
				brandstr:"",
				comp_fullname:"",
				part_fullname:"",					
				used_username:"",
				zcsourcestr:"",			
				wbsupplierstr:"",
				wbstr:"",	
				locstr:"",
				locdtl:"",
				buy_timestr:"",
				ip:"",
				envstr:"",
				sn:"",
				mark:"",
				wbout_datestr:"",
				wbstr:"",
				wbsupplierstr:"",
				wbct:"",
				usefullifestr:"",
				fs20:"",
				label1:"",
				label2:""
			},
			disabled:true,
			border: false,
			check: false,
			labelPosition: 'left'
		};
	},
	onLoad(event) {
		var id = event.id	
		if(this.$u.test.empty(id)){
			id="b614d63d-4692-4040-ad50-46bb26df0d42";
		}
		this.$u.get('/api/base/res/queryResAllById.do', {
			id:id
		}).then(res => {
			if(res.success){
				this.model=res.data.data;
			}else{	 
			}
		})
	 
	},
	computed: {	 
	},
	onReady() {
	},
	methods: {
	 
	}
};
</script>

<style scoped lang="scss">
.wrap {
	padding: 30rpx;
	background-color: white;
}
 

.agreement {
	display: flex;
	align-items: center;
	margin: 40rpx 0;

	.agreement-text {
		padding-left: 8rpx;
		color: $u-tips-color;
	}
}
</style>
